<template>
  <zm-view ref="view">
    <deco-entry-common ref="deco" :data="personDeco" page="person"></deco-entry-common>
  </zm-view>
</template>

<script>
import page from "@/mixins/page"
import { mapGetters } from "vuex"
export default {
  mixins: [page],
  data() {
    return {}
  },
  computed: {
    ...mapGetters(["personDeco", "login"])
  },
  onShow() {
    this.handleRefresh()
    this.handleUserInfo()
  },
  methods: {
    handleRefresh() {
      this.$refs.deco?.refresh()
    },
    handleUserInfo() {
      this.login && this.$store.dispatch("getUserInfo")
      this.login && this.$store.dispatch("getUserSign")
    }
  }
}
</script>

<style lang="scss" scoped></style>
